package com.situ.mp.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer age;
    private  String email;
    // 逻辑删除 1代表有效数据， 0代表删除数据
    @TableLogic(value = "1", delval = "0")
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
    @TableField(fill = FieldFill.UPDATE)
    private Date gmtModified;



}
